<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>调度历史</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/schedef/tSchedef/modifylist">调度列表</a></li>
		<li class="active"><a
			href="${ctx}/schedef/tSchedef/dispatchlist?id=${tSchedef.id}">历史调度
		</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="tSchedef" action="${ctx}/schedef/dispatchlist/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr><th>班次名称</th><th>发车日期类型</th>
			<th>车辆数</th><th>座位数</th><th>生效日期</th><th>失效日期</th>
				<shiro:hasPermission name="schedef:tSchedefAudit:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="tDefDispatch">
			<tr>
				<td>${tDefDispatch.schename}</td>
				<td>
				<input	type="checkbox"  disabled=“disabled”
					<c:choose><c:when test="${fn:substring(tDefDispatch.departtype,0,1) eq 1 }">checked="true" value="1"</c:when><c:otherwise >value="0"</c:otherwise></c:choose> />周一
				<input type="checkbox"  disabled=“disabled”
					<c:choose><c:when test="${fn:substring(tDefDispatch.departtype,2,3) eq 1 }">checked="true" value="1"</c:when><c:otherwise >value="0"</c:otherwise></c:choose> />周二
				<input type="checkbox"  disabled=“disabled”
					<c:choose><c:when test="${fn:substring(tDefDispatch.departtype,4,5) eq 1 }">checked="true" value="1"</c:when><c:otherwise >value="0"</c:otherwise></c:choose> />周三
				<input type="checkbox"  disabled=“disabled”
					<c:choose><c:when test="${fn:substring(tDefDispatch.departtype,6,7) eq 1 }">checked="true" value="1"</c:when><c:otherwise >value="0"</c:otherwise></c:choose> />周四
				<input type="checkbox"  disabled=“disabled”
					<c:choose><c:when test="${fn:substring(tDefDispatch.departtype,8,9) eq 1 }">checked="true" value="1"</c:when><c:otherwise >value="0"</c:otherwise></c:choose> />周五
				<input type="checkbox"  disabled=“disabled”
					<c:choose><c:when test="${fn:substring(tDefDispatch.departtype,10,11) eq 1 }">checked="true" value="1"</c:when><c:otherwise >value="0"</c:otherwise></c:choose> />周六
				<input type="checkbox"  disabled=“disabled”
					<c:choose><c:when test="${fn:substring(tDefDispatch.departtype,12,13) eq 1 }">checked="true" value="1"</c:when><c:otherwise >value="0"</c:otherwise></c:choose> />周日
</td>
				<td>${tDefDispatch.vehiclenum}</td>		
				<td>${tDefDispatch.totalseats}</td>
				<td>${tDefDispatch.startDate}</td>
				<td>${tDefDispatch.endDate}</td>
				<shiro:hasPermission name="schedef:tSchedef:edit"><td>
    				<a href="${ctx}/schedef/tSchedef/form?id=${tDefDispatch.scheid}&updateorview=D">详细信息</a>
					<%-- <a href="${ctx}/schedef/tSchedefAudit/delete?id=${tSchedefAudit.id}" onclick="return confirmx('确认要删除该班次审核吗？', this.href)">删除</a> --%>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>